package com.file.manage.domain.entity.convertor;


import com.file.manage.domain.data.UserFileMappingVO;
import com.file.manage.domain.data.UserInfo;
import com.file.manage.domain.entity.User;
import com.file.manage.domain.entity.UserFileMapping;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author H41
 * @Type UserConvertor.java
 * @date 2025/5/30 23:49
 * @Desc 用户转换器
 */

@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface UserFileMappingConvertor {
    UserFileMappingConvertor INSTANCE = Mappers.getMapper(UserFileMappingConvertor.class);

    @Mapping(source = "userName", target = "userName")
    @Mapping(source = "fileName", target = "fileName")
    UserFileMappingVO toUserFileMappingVO(UserFileMapping userFileMapping, String userName, String fileName);

}
